package pers.dawnyang.common.domain;

import lombok.Data;

/**
 * @author dawn
 * @date 2021/03/29
 */
@Data
public class ExcelMsg {

    private Integer successNum = 0;

    private Integer falseNum = 0;

    private String msg = "";

    public void successInc() {
        this.successNum++;
    }

    public void falseInc() {
        this.falseNum++;
    }

    public void addMsg(String str) {
        String addMsg = "<br>" + str;
        this.msg += addMsg;
    }

    @Override
    public String toString() {
        return "成功数量： " + successNum + ", <br>失败数量： " + falseNum + ", <br>详情： " + msg;
    }

}
